/**
 * 
 */
package freedom.ms.registry.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author charlie
 *
 */
@Configuration
@EnableRedisHttpSession(redisNamespace = "sample", maxInactiveIntervalInSeconds = 600)
public class RedisConfig {

	@Bean
	public GenericJackson2JsonRedisSerializer genericJackson2JsonRedisSerializer() {
		GenericJackson2JsonRedisSerializer genericJackson2JsonRedisSerializer = new GenericJackson2JsonRedisSerializer();
		return genericJackson2JsonRedisSerializer;
	}
}